







[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Creates a sorted version of a collection. A supplied Comparison<T> delegate is used
to compare the items in the collection.
Namespace: Wintellect.PowerCollections
Assembly:
PowerCollections (in PowerCollections.dll)
Syntax
C# |
---|
public static T[] Sort<T>( IEnumerable<T> collection, Comparison<T> comparison ) |
Visual Basic (Declaration) |
---|
Public Shared Function Sort(Of T) ( _ collection As IEnumerable(Of T), _ comparison As Comparison(Of T) _ ) As T() |
Visual C++ |
---|
public: generic<typename T> static array<T>^ Sort ( IEnumerable<T>^ collection, Comparison<T>^ comparison ) |
Parameters
- collection
- IEnumerable<(Of <T>)>
The collection to sort.
- comparison
- Comparison<(Of <T>)>
The comparison delegate used to compare items in the collection.
Return Value
An array containing the sorted version of the collection.
Type Parameters
- T
See Also
Algorithms Class
Wintellect.PowerCollections Namespace